package com.maben.service.impl;

import com.maben.mapper.UserMapper;
import com.maben.pojo.User;
import com.maben.service.UserService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User queryUserById(String id) throws Exception {
        if (StringUtils.isBlank(id)){
            return null;
        }
        return userMapper.queryUserById(id);
    }
}
